package com.ft.turorial.spring.boot.kafka.message;

import com.ft.turorial.spring.boot.kafka.message.enums.MessageType;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2016/12/3
 * \* Time: 16:00
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class MessageWrapper {
    private MessageType messageType;
    private Object data;

    public MessageType getMessageType() {
        return messageType;
    }

    public void setMessageType(MessageType messageType) {
        this.messageType = messageType;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "MessageWrapper{" +
                "messageType=" + messageType +
                ", data=" + data +
                '}';
    }
}
